class UserManager {


    setUserId(account) {
        localStorage.setItem('userId', account);
    }

    getUserId() {
        return localStorage.getItem('userId');
    }
    setPermissions(permissions) {
        localStorage.setItem('role', permissions);
    }

    getPermissions() {
        return localStorage.getItem('role');
    }

    setName(name){
        localStorage.setItem('userName', name);
    }
    getName(){
        return localStorage.getItem('userName');
    }



}

const userManager = new UserManager();
export default userManager;
